<?php
use_stylesheet ( 'jobs.css' )?>
<?php

include_partial ( 'job/list', array ('jobs' => $pager->getResults () ) )?>
 
<?php
if ($pager->haveToPaginate ()) :
	?>
<div class="pagination"><a
	href="<?php
	echo url_for ( 'category', $category )?>?page=1"> <img
	src="/images/first.png" alt="First page" /> </a> <a
	href="<?php
	echo url_for ( 'category', $category )?>?page=<?php
	echo $pager->getPreviousPage ()?>"> <img src="/images/previous.png"
	alt="Previous page" title="Previous page" /> </a>
 
    <?php
	foreach ( $pager->getLinks () as $page ) {
		if ($page == $pager->getPage ()) {
			echo $page;
		} else {
			echo '<a href="' . url_for ( 'category', $category ) . '?page=' . $page . '"' . $page . '</a>';
		}
	}
	?>
 
    <a
	href="<?php
	echo url_for ( 'category', $category )?>?page=<?php
	echo $pager->getNextPage ()?>"> <img src="/images/next.png"
	alt="Next page" title="Next page" /> </a> <a
	href="<?php
	echo url_for ( 'category', $category )?>?page=<?php
	echo $pager->getLastPage ()?>"> <img src="/images/last.png"
	alt="Last page" title="Last page" /> </a></div>

<?php endif;
?>

<div class="pagination_desc"><strong><?php
echo $pager->getNbResults ()?></strong> jobs in this category
 
  <?php
		if ($pager->haveToPaginate ()) :
			?>
    - page <strong><?php
			echo $pager->getPage ()?>/<?php
			echo $pager->getLastPage ()?></strong>
  
		<?php endif;
		?>
</div>